<?php
/**
 * Cms_Form_Login
 *
 * The login form
 *
 * @category   Cms
 * @package    Cms_Form
 */
class Cms_Form_Administrator_Administrator_Login extends BIS_Form_Abstract
{
    public function init ()
    {

        $this->addElementPrefixPath('Cms_Decorator',
                            	     APPLICATION_PATH . '/modules/cms/models/decorator/',
                            	    'decorator');


        $token = new Zend_Form_Element_Hash('token', array('salt' => 'unique'));
        $token->setDecorators(array('ViewHelper'));

        $username = new Zend_Form_Element_Text('username');
        $username->setLabel('Username:')->setRequired(true);

        $password = new Zend_Form_Element_Password('password');
        $password->setLabel('Password:')->setRequired(true);

        $this->addElements(array($token,$username, $password));

         $this->setElementDecorators(array(
            'ViewHelper',
            array(array('data' => 'HtmlTag'),  array('tag' =>'br', 'placement' => 'APPEND')),
            'LoginLabel'
        ));
        
        $this->setDecorators(array(
            'FormElements',
            'Form'
        ));
    }
}